package com.busines.MQ;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class Receiver {

	
	@RabbitListener(queues="fanout.A",containerFactory = "pointTaskContainerFactory")
    public void processA(String str1) {
        System.out.println("ReceiveA:"+str1);
    }
	@RabbitListener(queues="fanout.B",containerFactory = "pointTaskContainerFactory")
    public void processB(String str1) {
        System.out.println("ReceiveB:"+str1);
    }
	@RabbitListener(queues="fanout.C",containerFactory = "pointTaskContainerFactory")
    public void processC(String str1) {
        System.out.println("ReceiveC:"+str1);
    }
	@RabbitListener(queues="fanout.D",containerFactory = "pointTaskContainerFactory")
    public void processD(String str1) {
        System.out.println("ReceiveD:"+str1);
    }
}
